package easyhash

import (
	"crypto"
	"strings"
)

// BLAKE2b256 使用 crypto.BLAKE2b_256 进行哈希
func BLAKE2b256(s string, salt []byte) string {
	h := crypto.BLAKE2b_256.New()
	result := MustEasyHash(h, strings.NewReader(s), salt)
	return Hex2Str(result)
}
